package org.springblade.modules.policy.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springblade.modules.policy.entity.Policy;

@Data
public class PolicyPushVO {
	/**
	 * 主键
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 发文字号
	 */
	private String athletsNum;
	/**
	 * 政策标题
	 */
	private String policyName;
	/**
	 * 发文机关
	 */
	private String athletsOrg;
	/**
	 * 匹配度
	 */
	private Double similarity;
	public PolicyPushVO(Policy policy){
		this.id = policy.getId();
		this.athletsNum = policy.getAthletsNum();
		this.policyName = policy.getPolicyName();
		this.athletsOrg = policy.getAthletsOrg();
	}
}
